package org.game.module.fight.handler;

import org.cfg.DungeonLevelCfg;
import org.cfg.DungeonLevelGroupCfg;
import org.game.db.bean.DungeonLevel;
import org.game.db.bean.Player;
import org.game.module.dungeonbo.DungeonBO;
import org.game.module.fight.AbstractFight;
import org.game.module.fight.dungeom.DungeonCheck;
import org.game.msgBuilder.DungeonMsgBuilder;
import org.game.protobuf.s2c.S2CDungeonMsg.FightStartMsg;

import com.sojoys.artifact.factory.message.IMessage;
import com.sojoys.artifact.manager.MessageManager;

/**
 * @author : DengYing
 * @CreateDate : 2018年8月14日 下午8:01:25
 * @Description ：常规关卡
 */
public class GeneralDungeonHandler extends DungeonFightHandler{
	

	public GeneralDungeonHandler(Player player, DungeonLevelCfg cfg, DungeonLevel dungeonLevel,DungeonLevelGroupCfg dungeonLevelGroupCfg) {
		super(player, cfg, dungeonLevel, dungeonLevelGroupCfg);
	}

	@Override
	public boolean startCheck(AbstractFight fight) {
		DungeonCheck.checkPreLevel(player, cfg);
		DungeonCheck.checkCost(player, cfg);
		DungeonCheck.checkFightCount(cfg, dungeonLevel);
		return true;
	}
}
